package com.data.modules.online.config.executor;

import com.baomidou.mybatisplus.annotation.DbType;
import com.data.modules.online.cgform.extend.ExtendJsonKey;
import com.data.modules.online.cgform.util.CgformUtil;
import com.data.modules.online.cgform.util.OnlFormShowType;
import org.apache.commons.lang.StringUtils;
import com.data.common.util.dynamic.db.DbTypeUtils;

public class ColumnMeta {

    private String f432a;

    private String f433b;

    private String f434c;

    private int f435d;

    private String f436e;

    private String f437f;

    private String f438g;

    private int f439h;

    private String f440i;

    private String f441j;

    private String f442k;

    private String f443l;

    public boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof ColumnMeta)) {
            return false;
        }
        ColumnMeta aVar = (ColumnMeta) obj;
        return (this.f436e.contains(OnlFormShowType.f320d) || this.f436e.contains("blob") || this.f436e.contains(ExtendJsonKey.f91e)) ? this.f434c.equals(aVar.getColumnName()) && this.f440i.equals(aVar.f440i) && m366a(this.f437f, aVar.getComment()) && m366a(this.f438g, aVar.getFieldDefault()) : this.f436e.equals(aVar.getColunmType()) && this.f440i.equals(aVar.f440i) && this.f435d == aVar.getColumnSize() && m366a(this.f437f, aVar.getComment()) && m366a(this.f438g, aVar.getFieldDefault());
    }

    public boolean mo1289a(Object obj, DbType dbType) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof ColumnMeta)) {
            return false;
        }
        ColumnMeta aVar = (ColumnMeta) obj;
        return DbTypeUtils.dbTypeIsSQLServer(dbType) ? (this.f436e.contains(OnlFormShowType.f320d) || this.f436e.contains("blob") || this.f436e.contains(ExtendJsonKey.f91e)) ? this.f434c.equals(aVar.getColumnName()) && this.f440i.equals(aVar.f440i) : this.f436e.equals(aVar.getColunmType()) && this.f440i.equals(aVar.f440i) && this.f435d == aVar.getColumnSize() && m366a(this.f438g, aVar.getFieldDefault()) : DbTypeUtils.dbTypeIsPostgre(dbType) ? (this.f436e.contains(OnlFormShowType.f320d) || this.f436e.contains("blob") || this.f436e.contains(ExtendJsonKey.f91e)) ? this.f434c.equals(aVar.getColumnName()) && this.f440i.equals(aVar.f440i) : this.f436e.equals(aVar.getColunmType()) && this.f440i.equals(aVar.f440i) && this.f435d == aVar.getColumnSize() && m366a(this.f438g, aVar.getFieldDefault()) : DbTypeUtils.dbTypeIsOracle(dbType) ? (this.f436e.contains(OnlFormShowType.f320d) || this.f436e.contains("blob") || this.f436e.contains(ExtendJsonKey.f91e)) ? this.f434c.equals(aVar.getColumnName()) && this.f440i.equals(aVar.f440i) : this.f436e.equals(aVar.getColunmType()) && this.f440i.equals(aVar.f440i) && this.f435d == aVar.getColumnSize() && m366a(this.f438g, aVar.getFieldDefault()) : (this.f436e.contains(OnlFormShowType.f320d) || this.f436e.contains("blob") || this.f436e.contains(ExtendJsonKey.f91e)) ? this.f436e.equals(aVar.getColunmType()) && this.f434c.equals(aVar.getColumnName()) && this.f440i.equals(aVar.f440i) && m366a(this.f437f, aVar.getComment()) && m366a(this.f438g, aVar.getFieldDefault()) : this.f436e.equals(aVar.getColunmType()) && this.f440i.equals(aVar.f440i) && this.f435d == aVar.getColumnSize() && m366a(this.f437f, aVar.getComment()) && m366a(this.f438g, aVar.getFieldDefault());
    }

    public boolean mo1290a(ColumnMeta aVar) {
        if (aVar == this) {
            return true;
        }
        return m366a(this.f437f, aVar.getComment());
    }

    public boolean mo1291b(ColumnMeta aVar) {
        if (aVar == this) {
            return true;
        }
        return m366a(this.f437f, aVar.getComment());
    }

    private boolean m366a(String str, String str2) {
        boolean isNotEmpty = StringUtils.isNotEmpty(str);
        boolean isNotEmpty2 = StringUtils.isNotEmpty(str2);
        if ("".equals(str2)) {
            return !isNotEmpty || str.toLowerCase().toString().indexOf("null") >= 0;
        }
        if (isNotEmpty != isNotEmpty2) {
            return false;
        }
        if (isNotEmpty) {
            return str.equals(str2);
        }
        return true;
    }

    public String getColumnName() {
        return this.f434c;
    }

    public int getColumnSize() {
        return this.f435d;
    }

    public String getColunmType() {
        return this.f436e;
    }

    public String getComment() {
        return this.f437f;
    }

    public int getDecimalDigits() {
        return this.f439h;
    }

    public String getIsNullable() {
        return this.f440i;
    }

    public String getOldColumnName() {
        return this.f442k;
    }

    public int hashCode() {
        return this.f435d + (this.f436e.hashCode() * this.f434c.hashCode());
    }

    public void setColumnName(String columnName) {
        this.f434c = columnName;
    }

    public void setColumnSize(int columnSize) {
        this.f435d = columnSize;
    }

    public void setColunmType(String colunmType) {
        this.f436e = colunmType;
    }

    public void setComment(String comment) {
        this.f437f = comment;
    }

    public void setDecimalDigits(int decimalDigits) {
        this.f439h = decimalDigits;
    }

    public void setIsNullable(String isNullable) {
        this.f440i = isNullable;
    }

    public void setOldColumnName(String oldColumnName) {
        this.f442k = oldColumnName;
    }

    public String toString() {
        return this.f434c + CgformUtil.f231E + this.f436e + CgformUtil.f231E + this.f440i + CgformUtil.f231E + this.f435d;
    }

    public String getColumnId() {
        return this.f433b;
    }

    public void setColumnId(String columnId) {
        this.f433b = columnId;
    }

    public String getTableName() {
        return this.f432a;
    }

    public void setTableName(String tableName) {
        this.f432a = tableName;
    }

    public String getFieldDefault() {
        return this.f438g;
    }

    public void setFieldDefault(String fieldDefault) {
        this.f438g = fieldDefault;
    }

    public String getPkType() {
        return this.f441j;
    }

    public void setPkType(String pkType) {
        this.f441j = pkType;
    }

    public String getRealDbType() {
        return this.f443l;
    }

    public void setRealDbType(String realDbType) {
        this.f443l = realDbType;
    }
}
